import request from "@/utils/request";

// 获取套餐
export const getPackageApi = (params:any):Promise<GetPackageRes>=>request.get(`/package/getpackage?pageSize=${params.pageSize}&&pageNum=${params.pageNum}&&belongToShop=${params.belongToShop}`)
// 添加套餐
export const addPackageApi = (params:any):Promise<Res>=>request.post('/package/addpackage',params)
// 修改套餐
export const updatePackageApi = (params:any):Promise<Res>=>request.post('/package/updatepackage',params)
// 删除套餐
export const delPackageApi = (params:any):Promise<Res>=>request.post('/package/delpackage',params)
// 模糊查询套餐
export const searchPackageApi = (params:any):Promise<SearchPackageRes>=>request.post('/package/searchpackage',params)
// 快速消费
export const fastCumApi = (params:any)=>request.post('/consume/fastconsume',params)
// 快速消费
export const goodsCumApi = (params:any)=>request.post('/consume/goodsconsume',params)
// 快速消费
export const vipRecgApi = (params:any)=>request.post('/consume/vipconsume',params)
// 快速消费
export const changeScoreApi = (params:any)=>request.post('/consume/changescore',params)
export const getVipSexApi = (params:any)=>request.get(`/data/getvipsex?belongToShop=${params.belongToShop}`)



